var t = require("../../../@babel/runtime/helpers/interopRequireDefault").default,
  e = require("../../../utils/http"),
  a = t(require("../../../utils/util")),
  r = new e.HTTP;
Page({
  data: {},
  onLoad: function (t) {
    var e = this,
      n = wx.getStorageSync("user");
    n[2] < 900 ? r.request({
      url: "https://www.qlsyyun.com:3030/rank/list",
      data: {
        arr: 5,
        class: n[1],
        month: a.default.formatDates(new Date)
      }
    }).then((function (t) {
      e.setData({
        origin: t.data
      })
    })) : n[2] > 900 && r.request({
      url: "https://www.qlsyyun.com:3030/rank/list",
      data: {
        arr: 3,
        month: a.default.formatDates(new Date)
      }
    }).then((function (t) {
      e.setData({
        origin: t.data
      })
    }))
  }
});